package main

import "fmt"

type duration int

func (d *duration) pretty() string {
	return fmt.Sprintf("Duration: %d", *d)
}
func main() {
	//如果给一个变量则 d.prety (&d).prety
	// (*d).pretty
	d := duration(22)
	fmt.Println(d.pretty())
}
